package main

func Add(x,y int)  {
	z  :=  x + y
	println(z)
}

func Count(ch chan int)  {
	ch <- 1
	println("counting")
}

func main() {
	chs := make([]chan int,10)
	for i:=0;i<10;i++ {
		chs[i] =make(chan int)
		go Add(1,1)
		go Count(chs[i])
	}
	for _,ch:=range(chs) {
		<-ch
	}
}
